<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of dashboard
 * 
 * @author Subha Sundar Das (subhasundar.das@gmail.com)
 */
class Dashboard extends MX_Controller {

   

    function dashboard() {
    	parent :: __construct();
    	$this->load->model(array('admin_member_model'));
    	 
    	$this->admin_member_model->check_admin_login();
    	$this->template
    	->set_layout('default') // application/views/layouts/two_col.php
    	->set_theme('admin'); // application/views/layouts/two_col.php
    	
    	$this->template->set_partial('nav_bar', 'layouts/nav_bar');
    	$this->template->set_partial('side_menu', 'layouts/side_menu');
    	$this->template->set_partial('footer','footer/footer');
    	
    	
    }
//--------Admin Dashboard----------------------
function index() {
			
		//--Category--Subha--
		$data['category'] = "";
			
			
		//--SYSTEM --//
			
		$data['mysql'] = mysql_get_server_info();
		$data['php'] = phpversion();
			
		$gd = gd_info();
		$data['gdv'] = $gd["GD Version"];
			
		$data['docRoot'] = $_SERVER['DOCUMENT_ROOT'] ;
			
		//$x= memory_get_usage() . "\n"; // 36640
		//print $x; die();
		$this->template->build('dashboard/dashboard',$data);
	}


}
?>